Hierarchy theory